<template>
  <div class="main">
    <el-icon class="icon" @click="toBack"><Back /></el-icon>
    <div class="title">
      {{ name }}
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  props: {
    name: String,
  },
  data() {
    return {};
  },
  methods: {
    toBack() {
        this.$router.go(-1)
    }
  },
};
</script>

<style scoped>
.main {
  color: #80a492;
  background-color: #d5ebe1;
  height: 50px;
  display: flex;
}

.icon {
  margin: auto 0;
  font-size: 20px;
  width: 20px;
}

.title {
  margin: auto 0;
  width: calc(100vw - 20px);
  display: flex;
  justify-content: center;
  margin-right: 20px;
}
</style>